class CreateUserRoles < ActiveRecord::Migration
  def change
     create_table :user_roles, :force => true do |t|
       t.string  :presentation, :limit => 100, :null => false
       t.string  :permissions, :limit => 120, :null => true
       t.integer :privilege, :limit => 1, :null => false
       t.string  :role, :limit => 30, :null => false
     end

     add_index :user_roles, :role, :unique => true
  end
end